FROM java:8
MAINTAINER YUZHIYONG
VOLUME /tmp
ENV LANG C.UTF-8
ENV TZ=Asia/Shanghai
RUN echo $TZ > /etc/timezone
COPY kafka-demo-1.0-SNAPSHOT.jar /home/kafka/app.jar
WORKDIR /home
RUN chmod 755 /home/kafka/app.jar
EXPOSE 8094
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/home/kafka/app.jar"]